package se.mbaeumer.fxtodo.core.handler;

import java.util.List;

import se.mbaeumer.fxtodo.core.model.EnumPriority;
import se.mbaeumer.fxtodo.db.DatabaseHandler;

public class PriorityHandler {
	private static final PriorityHandler INSTANCE = new PriorityHandler();
	private PriorityHandler(){};
	public static PriorityHandler getInstance(){return INSTANCE;}
	
	public List<String> getPriorityTitles(DatabaseHandler dbh){
		return dbh.getPriorityTitles();
	}
	
	public int getPriorityIdByTitle(DatabaseHandler dbh, String title){
		return dbh.getPriorityIDByTitle(title);
	}
	
	public EnumPriority getPriorityById(DatabaseHandler dbh, int priorityId){
		return dbh.getPriorityById(priorityId);
	}
}
